package com.zdd.ehe.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * <p>
 * 
 * </p>
 *
 * @author ZhuiZhu
 * @since 2023-03-13
 */
@TableName("p_user")
@ApiModel(value = "User对象", description = "")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("登录账号")
    private String account;

    @ApiModelProperty("盐值")
    private String salt;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("手机号")
    private String phone;

    @ApiModelProperty("性别")
    private String gender;

    @ApiModelProperty("座右铭")
    private String motto;

    @ApiModelProperty("注册时间")
    private LocalDateTime registtm;

    @ApiModelProperty("头像")
    private String avatar;

    @ApiModelProperty("累计登录天数")
    private Integer loginDays;

    @ApiModelProperty("最近登录时间")
    private LocalDateTime lastLogintm;

    @ApiModelProperty("粉丝数")
    private Integer fans;

    @ApiModelProperty("积分")
    private Integer score;

    @ApiModelProperty("删除标记")
    private String del;

    @ApiModelProperty("UUID")
    private String userUuid;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getSalt() {
        return salt;
    }

    public void setSalt(String salt) {
        this.salt = salt;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getGender() {
        return gender;
    }

    public void setGender(String gender) {
        this.gender = gender;
    }

    public String getMotto() {
        return motto;
    }

    public void setMotto(String motto) {
        this.motto = motto;
    }

    public LocalDateTime getRegisttm() {
        return registtm;
    }

    public void setRegisttm(LocalDateTime registtm) {
        this.registtm = registtm;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    public Integer getLoginDays() {
        return loginDays;
    }

    public void setLoginDays(Integer loginDays) {
        this.loginDays = loginDays;
    }

    public LocalDateTime getLastLogintm() {
        return lastLogintm;
    }

    public void setLastLogintm(LocalDateTime lastLogintm) {
        this.lastLogintm = lastLogintm;
    }

    public Integer getFans() {
        return fans;
    }

    public void setFans(Integer fans) {
        this.fans = fans;
    }

    public Integer getScore() {
        return score;
    }

    public void setScore(Integer score) {
        this.score = score;
    }

    public String getDel() {
        return del;
    }

    public void setDel(String del) {
        this.del = del;
    }

    public String getUserUuid() {
        return userUuid;
    }

    public void setUserUuid(String userUuid) {
        this.userUuid = userUuid;
    }

    @Override
    public String toString() {
        return "User{" +
            "id = " + id +
            ", account = " + account +
            ", salt = " + salt +
            ", password = " + password +
            ", userName = " + userName +
            ", phone = " + phone +
            ", gender = " + gender +
            ", motto = " + motto +
            ", registtm = " + registtm +
            ", avatar = " + avatar +
            ", loginDays = " + loginDays +
            ", lastLogintm = " + lastLogintm +
            ", fans = " + fans +
            ", score = " + score +
            ", del = " + del +
            ", userUuid = " + userUuid +
        "}";
    }
}
